<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>flex实现三栏布局</title>
    <style>
        .container {
            display: flex;
        }

        .left {
            width: 200px;
            background-color: lightgreen;
        }

        .right {
            width: 200px;
            background-color: lightblue;
        }

        .center {
            flex: 1;
            background-color: lightpink;
        }
    </style>
</head>
<body>
    <div class="container">
        <div class="left">left</div>
        <div class="center">center</div>
        <div class="right">right</div>
      </div>
</body>
</html>